Background and Objective: Among the components of the Building envelope, the Roof section is the most important medium of energy loss, because, compared to vertical walls, a larger area of the Rooftop is exposed to sunlight and atmospheric condition for a longer period, which results in greater heat exchange through this section. The goal of this research is to reduce the energy consumption of residential Buildings in the city of Shiraz (Fars, Iran) through the optimization of their Roof sections by answering the bellow question: “, What is the most optimal arrangement of materials and passive Roof design technique for reducing energy consumption in this climate and how much will it reduce energy consumption? ”,Material and Methodology: The purpose of the research, which is to identify the best combination of Roof specifications and passive design methods for minimizing energy consumption in the Buildings of the area of interest, achieved with help of the EnergyPlus simulation and a genetic algorithm developed in MATLAB. Findings: The Roof variables defined in three categories of the passive energy system, physical Roof specifications, and positioning and the optimization carried out using the genetic algorithm and the EnergyPlus software. Discussion and Conclusion: The outputs obtained from the simulation software and the objective function of the genetic algorithm showed that the Roof optimization materials’,arrangement could reduce the energy consumption of the Building by 9. 6%. and passive design techniques includes: green Roof, insulation, double Roof, reduce energy consumption by 9. 1%, 13. 4%, 12, 6% respectively.